<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch"
          action="${request.getContextPath()}/crystalBarTestResult/crystalBarTestResult" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="crystalBarTestResult"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <label>测试日期：</label>
            <input type="text" name="startTime" value="${startTime}" size="11" data-toggle="datepicker"
                   placeholder="FROM">
            <input type="text" name="endTime" value="${endTime}" size="11" data-toggle="datepicker"
                   placeholder="TO">&nbsp;
            <label>晶棒型号：</label>
            <g:select name="type1" from="${crystalBarTestResultType}" data-toggle="selectpicker" data-live-search="true"
                      optionKey="part_desc" optionValue="part_desc" value="${type1}" data-width="130"
                      noSelection="['': '-- All --']"/>&nbsp;
            <label>LOT NO：</label>
            <g:textField name="lotno" value="${lotno}" size="16" placeholder="LOT NO"/>
            %{--<g:select name="lotno" from="${crystalBarTestResultLotList}" data-toggle="selectpicker" data-live-search="true"--}%
            %{--optionKey="lot_id" optionValue="lot_id" value="${lotno}" noSelection="['':'ALL']" />&nbsp;--}%
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/productionStepScrapDetail/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出</button>
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${crystalBarTestResult.size() > 0}">
        <table data-toggle="tablefixed" data-width="170%" data-nowrap="true">
            <thead>
            <tr id="t1">
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance != 'RN'}">
                        <th><g:message code="${headInstance}" default="${headInstance}"/></th>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
            <g:each in="${crystalBarTestResult}" status="i" var="dataInstance">
                <tr>
                    <g:each in="${tableHeadList}" status="j" var="headInstance">
                        <g:if test="${headInstance != 'RN'}">
                            <td>${dataInstance["${headInstance}"]}</td>
                        </g:if>
                    </g:each>
                </tr>
            </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel"/>
    </g:else>
</div>
<g:render template="../template/51pagination"/>
